<?php


namespace app\common\model;


use app\common\traites\TraitModel;
use think\Model;

class UserSet extends Model
{
    use TraitModel;

    public $name = 'dianji_user_set';

    public static function user_insert($u_id = 0, $xima = 0, $is_xian_hong = 0, $post = false)
    {
        if ($post){
                $post =  array_filter($post);
            return self::insert($post);
        }

        return self::insert(['u_id' => $u_id, 'xima_lv' => $xima, 'is_xian_hong' => $is_xian_hong]);

    }


}